package cn.bjit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 优惠券实体
 * </p>
 *
 * @author yx
 * @since 2022-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon")
public class CouponDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //优惠卷类型[NEW_USER注册赠券，TASK任务卷，PROMOTION促销劵]
    private String category;
    //发布状态, PUBLISH发布，DRAFT草稿，OFFLINE下线
    private String publish;
    //优惠券图片
    private String couponImg;
    //优惠券标题
    private String couponTitle;
    //抵扣价格
    private BigDecimal price;
    //每人限制张数
    private Integer userLimit;
    //优惠券开始有效时间
    private Date startTime;
    //优惠券失效时间
    private Date endTime;
    //优惠券总量
    private Integer publishCount;
    //库存
    private Integer stock;
    //优惠券创建的时间
    private Date createTime;
    //满多少才可以使用
    private BigDecimal conditionPrice;

}
